package user

import (
	"chat-box/initiate/handler"
	"chat-box/middleware"

	"github.com/gin-gonic/gin"
)

func UsersGroup(group *gin.RouterGroup) {
	userHandler := handler.NweUserHandler()
	group.POST("login", userHandler.Login)
	group.POST("list", middleware.Middleware, userHandler.List)
	group.POST("add", userHandler.AddFriend)
}
